package com.zlf.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName DemoController
 * @Description TODO
 * @Author zlf
 * @Date 2021/5/14 17:13
 */
@RestController
public class DemoController {

    @GetMapping("/foo")
    public String demo() throws Exception {
        return "正常返回值";
//        throw new Exception("就让你异常，测试熔断");
    }

}
